package com.java_base.study;

public class TypeDemo03 {
    public static void main(String[] args) {
        // 目标：理解强制类型转换并使用

        int a = 10;
        byte b = (byte)a;
        System.out.println(a);
        System.out.println(b);


        int i = 1500;
        byte j = (byte) i;
        System.out.println(j);

        double x = 99.5;
        int y = (int) x;
        System.out.println(y);
    }
}
